/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.acme.model;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

/**
 *
 * @author General
 */
@Table
@Entity
@IdClass(StockPricePK.class)
public class StockPrice implements Serializable{
    
    @Id 
    @Column
    private long stock_id;
    @Id
    @Column
    private long market_id;
    @Id
    @Column
    private String priceDate;	
    @Column
    private String openPrice;
    @Column
    private String highPrice;
    @Column
    private String lowPrice;
    @Column
    private String closePrice;
    @Column
    private String volume;
    //Close price adjusted for dividends and splits
    @Column
    private String adjustedClosePrice;

    public StockPrice() {
    }

    public StockPrice(long stock_id, long market_id, String priceDate, String openPrice, String highPrice, String lowPrice, String closePrice, String volume, String adjustedClosePrice) {
        this.stock_id = stock_id;
        this.market_id = market_id;
        this.priceDate = priceDate;
        this.openPrice = openPrice;
        this.highPrice = highPrice;
        this.lowPrice = lowPrice;
        this.closePrice = closePrice;
        this.volume = volume;
        this.adjustedClosePrice = adjustedClosePrice;
    }

    public long getStock_id() {
        return stock_id;
    }

    public void setStock_id(long stock_id) {
        this.stock_id = stock_id;
    }

    public long getMarket_id() {
        return market_id;
    }

    public void setMarket_id(long market_id) {
        this.market_id = market_id;
    }

    public String getPriceDate() {
        return priceDate;
    }

    public void setPriceDate(String priceDate) {
        this.priceDate = priceDate;
    }

    public String getOpenPrice() {
        return openPrice;
    }

    public void setOpenPrice(String openPrice) {
        this.openPrice = openPrice;
    }

    public String getHighPrice() {
        return highPrice;
    }

    public void setHighPrice(String highPrice) {
        this.highPrice = highPrice;
    }

    public String getLowPrice() {
        return lowPrice;
    }

    public void setLowPrice(String lowPrice) {
        this.lowPrice = lowPrice;
    }

    public String getClosePrice() {
        return closePrice;
    }

    public void setClosePrice(String closePrice) {
        this.closePrice = closePrice;
    }

    public String getVolume() {
        return volume;
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    public String getAdjustedClosePrice() {
        return adjustedClosePrice;
    }

    public void setAdjustedClosePrice(String adjustedClosePrice) {
        this.adjustedClosePrice = adjustedClosePrice;
    } 
}
